﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Common;
using System.Data;

namespace IronSuit.DataMap
{
	public interface IDBFactory
	{
		int ExecSql(string Sql, List<DbParameter> ParaList);
		DataSet ExecQuerySql(string Sql, List<DbParameter> ParaList);
		bool Insert(DataEntity Entity);
		bool Update(DataEntity Entity);
		bool Delete(DataEntity Entity);
		bool Query(DataEntity Entity);
		long Count(DataEntity Entity);
		List<DataEntity> QueryList(DataEntity Entity,int pageSize);
		DataTable QueryDataTable(DataEntity Entity,int pageSize);
	}
}
